package com.ys.enume.sys;

public class YsRoleMenuEnum {
	
	/*
	 * 权限类型
	 */
	public enum Type {
		ALL("全部权限", 1), OPERATOR("运营机构权限", 2), DEPT("机构权限", 3), USER("个人权限", 4);
		public String name;
		public Integer value;

		private Type(String name, Integer value) {
			this.name = name;
			this.value = value;
		}
		
		public static boolean checkIn(Integer value) {
			if (value == null) {
				return false;
			} else {
				for (Type e : Type.values()) {
					if (value == e.value) {
						return true;
					}
				}
			}
			return false;
		}
	}
}
